/*
 * @Autor: 黄旗
 * @Date: 2020-06-12 08:32:30
 */
import request from "@/plugins/request";
import dayjs from "dayjs";

// 微信信息展示
export function worktodowechatinfo(data) {
    let datas = data;
    if (data.start) {
        datas.start = dayjs(data.start).format("YYYY-MM-DD");
        datas.end = dayjs(data.end).format("YYYY-MM-DD");
    }
    return request({
        url: "/v1/work/todo/wechat-info",
        method: "get",
        params: datas,
    });
}
// 我的患者
export function workpatientpatientlist(data) {
    let datas = data;
    if (data.start_time) {
        datas.start_time = dayjs(data.start_time).format("YYYY-MM-DD");
        datas.end_time = dayjs(data.end_time).format("YYYY-MM-DD");
    }
    return request({
        url: "/v1/work/patient/patient-list",
        method: "get",
        params: datas,
    });
}
// 我的代办
// 线索留言
export function worktodocluegrab(data) {
    return request({
        url: "/v1/work/todo/clue-grab",
        method: "get",
        params: data,
    });
}
// 线索客服
export function worktodoclueentry(data) {
    return request({
        url: "/v1/work/todo/clue-entry",
        method: "get",
        params: data,
    });
}
// 待回访
export function worktodocallback(data) {
    return request({
        url: "/v1/work/todo/callback",
        method: "get",
        params: data,
    });
}
// 即将进入公海
export function worktodoentryseasoon(data) {
    return request({
        url: "/v1/work/todo/entry-sea-soon",
        method: "get",
        params: data,
    });
}
// 信息完善
export function workpatientinformation(data) {
    return request({
        url: "/v1/work/patient/information",
        method: "get",
        params: data,
    });
}
// 详情
export function workpatientpatientdetail(data) {
    let datas = data;
    if (data.start_time) {
        datas.start_time = dayjs(data.start_time).format("YYYY-MM-DD");
        datas.end_time = dayjs(data.end_time).format("YYYY-MM-DD");
    }
    return request({
        url: "/v1/work/patient/patient-detail",
        method: "get",
        params: datas,
    });
}
// 详情筛选项
export function workpatientgetparamslist(data) {
    return request({
        url: "/v1/work/patient/get-params-list",
        method: "get",
        params: data,
    });
}
// 运势等显示
export function workcalendarcalendarlist(data) {
    return request({
        url: "/v1/work/calendar/calendar-list",
        method: "get",
        params: data,
    });
}
// 签到
export function workcalendarsignin(data) {
    return request({
        url: "/v1/work/calendar/signin",
        method: "post",
        data,
    });
}
// 各个线索数量
export function clueusercluecount(data) {
    return request({
        url: "/v1/clue/user/clue-count",
        method: "get",
        params: data,
    });
}
